<?php echo $this->Session->flash(); ?>

<div id="loading" style="display: none;">
    <?php echo $html->image('loading.gif', array('border' => "0", 'align' => 'center')); ?>
</div>
<table id="tabla" class="tabla" >
    <thead>
        <tr>
            <th>ID </th>
            <th>TEXTO</th>
            <th>TIPO</th>
            <th colspan="3">OPCIONES</th>
        </tr>
    </thead>
    <tbody>
        <?php foreach ($req as $rec): ?>
            <tr>
                <td><?php echo $rec['RequirementFault']['id'] ?></td>
                <td><?php echo $rec['RequirementFault']['nombre'] ?></td>
                <td><?php echo $rec['RequirementFault']['tipo'] ?></td>
                <td><?php echo $ajax->link('Editar', array('controller' => 'RequirementFaults', 'action' => 'edit', $rec['RequirementFault']['id']), array('update' => 'content', 'complete' => 'caargar()', 'indicator' => 'loading')) ?></td>
                <td><?php echo $ajax->link('Borrar', array('controller' => 'RequirementFaults', 'action' => 'delete', $rec['RequirementFault']['id'], $id), array('update' => 'content', 'complete' => 'cargar()', 'indicator' => 'loading'), '¿Desea eliminar el registro?') ?></td>

            </tr>
        <?php endforeach; ?>
    </tbody>
</table>
<?php echo "<br>"; ?>
<td><?php echo $ajax->link('ADICIONAR RESTRICCIÓN', array('controller' => 'RequirementFaults', 'action' => 'add', $id), array('update' => 'content', 'complete' => 'caargar()', 'indicator' => 'loading')) ?></td>





